package org.emet.entity.biz;

import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.emet.help.CGResource;
import org.emet.jee.console.entity.BaseEntity;

@Entity
@Table(name = "T_SERVICE_DETAIL")
public class ServiceDetail extends BaseEntity {

	private String bizNo;
	private String name;
	private String type;
	private String unit;
	private Integer count;
	private BigDecimal singleFee;
	private String remark;

	// 总费用
	@CGResource("总费用")
	private double totalFee;
	// 应付费用
	@CGResource("应付费用")
	private double shouldPaidTotalFee;
	// 已付总费用
	@CGResource("已付总费用")
	private double paidFee;

	public String getBizNo() {
		return bizNo;
	}

	public void setBizNo(String bizNo) {
		this.bizNo = bizNo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public BigDecimal getSingleFee() {
		return singleFee;
	}

	public void setSingleFee(BigDecimal singleFee) {
		this.singleFee = singleFee;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public double getTotalFee() {
		return totalFee;
	}

	public void setTotalFee(double totalFee) {
		this.totalFee = totalFee;
	}

	public double getShouldPaidTotalFee() {
		return shouldPaidTotalFee;
	}

	public void setShouldPaidTotalFee(double shouldPaidTotalFee) {
		this.shouldPaidTotalFee = shouldPaidTotalFee;
	}

	public double getPaidFee() {
		return paidFee;
	}

	public void setPaidFee(double paidFee) {
		this.paidFee = paidFee;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
